******************************************************************************
*** PAPER: THE ITALIAN POLITICAL CLASS
*** FILE NAME: "2 - sample bias analysis"
*** AUTHOR: Isernia, Martini, Olmastroni, Verzichelli
*** DATASET: Various datasets
*** SECTIONS: *1. POPULATION
			  *2. SURVEY
*******************************************************************************/



***1.POPULATION

*Municipal data
	clear all
	*SET CATEGORY
	
	use "municipaldata_01.dta"

	*age
	fre ageclass
	
	*area
	fre geoarea

	*edu
	fre edu

	*party
	fre politicalist
	
	
	
*Regional data
	clear all
	*SET CATEGORY

	use "regionaldata_01.dta"

	*age
	fre ageclass
	
	*area
	fre geoarea

	*edu
	fre edu

	*party
	fre politicalist
	
	
	
*National/EU
	clear all
	use "mpsdata_01.dta"

	*age
	fre ageclass
	
	*area
	fre geoarea

	*edu
	fre edu

	*party
	fre politicalist



***2.SURVEY
	clear all
	*SET CATEGORY

	use "surveydata_01.dta"
	
*Municipal level
	keep if level==1

*Regional level
	keep if level==2

*National/EU level
	keep if level==3 

	*age
	fre ageclass
	
	*area
	fre geoarea

	*edu
	fre edumin

	*party
	fre politicalist
